/*index.jsp页面的js开始*/
	var status=2;//初始化时，显示图片p2.gif
	function hideshow()
	{
		if(status==2)
		{
			document.getElementById("hideshowimg").src="images/p1.gif";
			status=1;
			document.getElementById("topiframe").style.display="none";
			document.getElementById("menu").style.display="none";
			hidesuckerdiv();
		}
		else
		{
			document.getElementById("hideshowimg").src="images/p2.gif";
			status=2;
			document.getElementById("topiframe").style.display="block";
			document.getElementById("menu").style.display="block";
			hidesuckerdiv();
		}	
	}
	
	function hidesuckerdiv()
	{
		document.getElementById("suckerdiv").style.display="none";
	}
	
	function showsuckerdiv()
	{
		document.getElementById("suckerdiv").style.display="block";
	}
	
	function buildsubmenus()
	{
		if(document.getElementById("suckertree")!=undefined)
		{
		  	var ultags=document.getElementById("suckertree").getElementsByTagName("ul")
		    for(var t=0; t<ultags.length; t++)
		    {
			    ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle"
			    ultags[t].parentNode.onmouseover=function()
			    {
			    	this.getElementsByTagName("ul")[0].style.display="block";
		   		}
			    ultags[t].parentNode.onmouseout=function()
			    {
			    	this.getElementsByTagName("ul")[0].style.display="none";
			    }
		    }
		 }
	}
	
	if(window.addEventListener)
	{
		window.addEventListener("load", buildsubmenus, false);
	}
	else 
	{
		if (window.attachEvent)
		{
			window.attachEvent("onload", buildsubmenus);
		}
	}
/*index.jsp页面的js结束*/	